<?php
class CategoriesController extends AppController {
	var $scaffold = 'admin';
	var $components = array('Auth');
	
	function beforeFilter(){
		if (isset($this->params['admin'])){
			$this->layout = 'admin';
		}
	}
}